#define   _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int main()
{
	int a, b;
	for (a = 1000; a <= 2000; a++)
	{

		b = (a % 4 == 0 && a % 100 != 0 || a % 4 == 0 && a % 400 == 0 ? 1 : 2);

		switch (b)

		case 1: printf("%d ", a);
	}
	return 0;
}